package com.gilgamesh.mall.sdk.bean.order;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * 商品订单信息
 * @author peiyao
 * @date 2021-01-11 11:11:44
 */
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Data
@TableName("t_order")
public class OrderEntity implements Serializable {

	private static final long serialVersionUID = 5051001499247688928L;
	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 
	 */
	private String userId;
	/**
	 * 
	 */
	private String skuCode;
	/**
	 * 
	 */
	private String productCode;
	/**
	 * 成交价
	 */
	private BigDecimal purchasePrice;
	/**
	 * 成交时间
	 */
	private Date transactionTime;
	/**
	 * 订单编号
	 */
	private String orderCode;
	/**
	 * 订单状态
	 */
	private Integer orderStatus;
	/**
	 * 运费
	 */
	private BigDecimal freight;
	/**
	 * 承运方
	 */
	private String carrier;
	/**
	 * 运单编号
	 */
	private String waybillNumber;
	/**
	 * 完成时间
	 */
	private Date completionTime;
	/**
	 * 是否完成
	 */
	private Integer isComplete;

}
